// vite.config.ts
import { defineConfig } from "file:///E:/vscode/political-web/node_modules/vite/dist/node/index.js";
import vue from "file:///E:/vscode/political-web/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import AutoImport from "file:///E:/vscode/political-web/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///E:/vscode/political-web/node_modules/unplugin-vue-components/dist/vite.mjs";
import { ElementPlusResolver } from "file:///E:/vscode/political-web/node_modules/unplugin-vue-components/dist/resolvers.mjs";
import postcssNested from "file:///E:/vscode/political-web/node_modules/postcss-nested/index.js";
import autoprefixer from "file:///E:/vscode/political-web/node_modules/autoprefixer/lib/autoprefixer.js";
import tailwindcss from "file:///E:/vscode/political-web/node_modules/tailwindcss/lib/index.js";
import { resolve } from "path";
import { createSvgIconsPlugin } from "file:///E:/vscode/political-web/node_modules/vite-plugin-svg-icons/dist/index.mjs";
var __vite_injected_original_dirname = "E:\\vscode\\political-web";
var vite_config_default = defineConfig({
  resolve: {
    alias: {
      "@": resolve(__vite_injected_original_dirname, "src")
    },
    extensions: [".js", ".ts", ".jsx", ".tsx", ".json", ".vue", ".mjs"]
  },
  plugins: [
    vue(),
    AutoImport({
      resolvers: [ElementPlusResolver()]
    }),
    Components({
      resolvers: [ElementPlusResolver()]
    }),
    createSvgIconsPlugin({
      // 指定需要缓存的图标文件夹
      iconDirs: [resolve(process.cwd(), "src/icons")],
      // 指定symbolId格式
      symbolId: "icon-[dir]-[name]"
    })
  ],
  server: {
    host: "0.0.0.0",
    proxy: {
      "/dev-api": {
        target: "http://192.168.0.21",
        // 代理的目标地址
        changeOrigin: true
        // 开发模式，默认的origin是真实的 origin:localhost:3000 代理服务会把origin修改为目标地址
        // rewrite: (path) => path.replace(/^\/api/, "")
      }
    }
  },
  css: {
    postcss: {
      plugins: [postcssNested, autoprefixer, tailwindcss]
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25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